package EX.ex;

 class Class1 {
    public static void main(String[] args) {
        A a1 = new A();
        a1.printa();
        B b1 = new B();
        b1.printb();
        a1.printa();
        b1.printa();
        C c1 = new C();
        c1.printc();
    }
}
class A {
    int x = 1;
    void printa() {
        System.out.println(x);
    }
}
class B extends A {
    int x = 100;
    void printb() {
        super.x = super.x + 10;
        System.out.println("super.x=" + super.x + "x=" + x);
    }
}
class C extends A{
    void printc() {
        System.out.println(x);
    }
}